home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11634 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: ?? How to dump text files to screen ?? - Showit.c [01/01]
  5. Date: 25 Mar 1996 07:37:02 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4j6eiuINNbqn@keats.ugrad.cs.ubc.ca>
  8. References: <31430CE8.469E@aol2.com> <4iocgq$kep@kryten.awinc.com> <315321FA.35A4@netscape.com> <4ivjfo$gb4@ss.netgate.net>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4ivjfo$gb4@ss.netgate.net>,
  12. Tamara Johnson  <malihini@netgate.net> wrote:
  13. >system( "type value1.txt" );
  14. >              ^^^^^^^^^^
  15. >              your file name
  16. >
  17. >(Got out of MS Visual C++ help file
  18. > in the fprintf example).
  19. >
  20. >(New at C)
  21. >Tamara
  22.  
  23. On my system, type is a shell builtin command which tells you how a command
  24. gets interpreted by the shell without actually running it. So if I enter
  25.  
  26.     type echo
  27.  
  28. the Bourne shell responds with: ``echo is a shell builtin''. If I type
  29.  
  30.     type vi
  31.  
  32. it responds with: ``vi is /usr/bin/vi''.
  33.  
  34.  
  35. I'm afraid that your solution is highly system specific and has little to do
  36. with C.
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. -- 
  45.  
  46.